$ 7.07

CMIS 102 Hands-On Lab Week 8 | Complete Solution latest update 2024/2025

CMIS 102 Hands-On Lab Week 8 | Complete Solution latest update 2024/2025

Pseudo-code:
Global variables:
 Constants using define declarations
o MAXN – the maximum number of characters in a band name
o MAXG – the maximum number of concerts/bands/groups
o MAXC – the maximum number of categories
 Arrays:
o char group [MAXG][MAXN]– the name of each group
o int fans [MAXG][MAXC]– the number of fans at a concert by category
o float prices [MAXC]– the ticket price of each category
o float sales [MAXG]– the total value of the tickets for each concert
 int count
o the actual number of active concerts/bands/groups
o this number is determined at run time in the getData function
o used throughout the rest of the program to only look at data in the
group, fans and salesarrays that is actually active.
Pseudo-Code:
1. main
a. getData – get ticket prices by category & get data for the concerts
b. computeSales – compute sales for each concert
c. printArray – print raw concert data
d. sortBySales – sort the concerts by value of sales, use selection sort
i. findMinSales – find min sales in unsorted rest of array
ii. switchRows – as needed
e. printArray – print sorted concert data
2. getData
a. prompt for ticket prices
b. get ticket prices into prices array
c. prompt for band name and fans in each category at each concert
d. insert data into appropriate arrays, ending with a period
i. loop on concert
1. get group name
2. loop inside on number of categories
3. computeSales
a. for each group
i. sales for that group = 0
Pseudo-code:
Global variables:
 Constants using define declarations
o MAXN – the maximum number of characters in a band name
o MAXG – the maximum number of concerts/bands/groups
o MAXC – the maximum number of categories
 Arrays:
o char group [MAXG][MAXN]– the name of each group
o int fans [MAXG][MAXC]– the number of fans at a concert by category
o float prices [MAXC]– the ticket price of each category
o float sales [MAXG]– the total value of the tickets for each concert
 int count
o the actual number of active concerts/bands/groups
o this number is determined at run time in the getData function
o used throughout the rest of the program to only look at data in the
group, fans and salesarrays that is actually active.
Pseudo-Code:
1. main
a. getData – get ticket prices by category & get data for the concerts
b. computeSales – compute sales for each concert
c. printArray – print raw concert data
d. sortBySales – sort the concerts by value of sales, use selection sort
i. findMinSales – find min sales in unsorted rest of array
ii. switchRows – as needed
e. printArray – print sorted concert data
2. getData
a. prompt for ticket prices
b. get ticket prices into prices array
c. prompt for band name and fans in each category at each concert
d. insert data into appropriate arrays, ending with a period
i. loop on concert
1. get group name
2. loop inside on number of categories
3. computeSales
a. for each group
i. sales for that group = 0

Preview document (3 of 19 pages)

Unlock document

Download all 19 pages for $ 7.07

Add document to cart
Report document Report document

Knoowy benefits

$ 7.07

Add document to cart
  • check Money back guarantee
  • check Documents can be downloaded immediately
  • check $0.50 discount when paying with balance
  • check Receive free quiz questions with document

Specifications

Seller

Passionate Nurse

112 documents uploaded

10 documents sold


ALL DOCUMENTS ON THIS PAGE ARE ON OFFER FROM 05/08/2024-07/011/2024
NURSING EXAMS AND TEST BANKS. Contact us, https://www.docsity.com/en/users/profile/HESISOLUTIONS/
to fetch it for you in minutes if we do not have it in this shop .BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.

Earn from your summaries?

icon 2

Do you make summaries or do you have any completed assignments? Upload your documents to Knoowy and earn money.

Upload document
Log in via e-mail
New password
Subscribe via e-mail
Shopping Cart

Deal: get 10% off when you purchase 3 or more items!

Deal: get 10% off when you purchase 3 or more items!

[Inviter] gives you € 2.50 to purchase summaries

At Knoowy you buy and sell the best studies documents directly from students. <br> Upload at least one item, please help other students and get € 2.50 credit.

Register now and claim your credit